import pytest,os,sys

from untils.logger import logger
from untils.email import em
if __name__ == '__main__':
    logger()
    pytest.main([r'C:\Users\张震海\Desktop\9_9\Case\test.py','--clean-alluredir','--alluredir=./report'])
    os.system('allure generate ./report -o ./html --clean')
    em([r'C:\Users\张震海\Desktop\9_9\html\index.html',r'C:\Users\张震海\Desktop\9_9\log.txt'])